/*
* @Author: dongshangtong
* @Date:   2018-10-11 00:42:23
* @Last Modified by:   dongshangtong
* @Last Modified time: 2018-10-11 00:42:42
*/

module.exports = (sequelize, DataTypes) => sequelize.define(
  'shops',
  {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    thumb_url: DataTypes.STRING,
  },
  {
    tableName: 'shops',
  },
);